<?php



class ProductsI18nMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ProductsI18nMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('products_i18n');
		$tMap->setPhpName('ProductsI18n');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('PRODUCTS_ID', 'ProductsId', 'int' , CreoleTypes::INTEGER, 'products', 'PRODUCTS_ID', true, null);

		$tMap->addPrimaryKey('CULTURE', 'Culture', 'string', CreoleTypes::VARCHAR, true, 7);

		$tMap->addColumn('PRODUCTS_NAME', 'ProductsName', 'string', CreoleTypes::VARCHAR, true, 64);

		$tMap->addColumn('PRODUCTS_DESCRIPTION', 'ProductsDescription', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('PRODUCTS_URL', 'ProductsUrl', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('PRODUCTS_VIEWED', 'ProductsViewed', 'int', CreoleTypes::INTEGER, false, null);

	} 
} 